package com.iocharger.demo.controller;

import com.iocharger.demo.api.IIndexService;
import com.iocharger.demo.dto.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/consumer")
public class ConsumerController {
    @Autowired
    private IIndexService indexService;
    @GetMapping("")
    public Result<?> index() {
        return indexService.index();
    }
}
